import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

import {PreviewsComponent} from './previews.component';

const routes: Routes = [
    {
        path: '',
        component: PreviewsComponent,
        children: [
            {
                path: 'web-pages-share',
                loadChildren: './web-pages-share/web-pages-share.module#WebPagesShareModule',
            },
            {
                path: 'kylin-editor',
                loadChildren: './kylin-editor/kylin-editor.module#KylinEditorModule'
            },
            {
                path: 'pipe-used',
                loadChildren: './pipe-used/pipe-used.module#PipeUsedModule'
            },
            {
                path: 'light-gallery',
                loadChildren: './light-gallery/light-gallery.module#LightGalleryModule'
            },
            {
                path: 'camera',
                loadChildren: './camera-demo/camera.module#CameraDemoModule'
            },
            {
                path: 'upload',
                loadChildren: './upload/upload.module#UploadModule'
            },
            {
                path: 'cache',
                loadChildren: './cache/cache.module#CacheModule'
            },
            {
                path: 'echarts',
                loadChildren: './echarts/echarts.module#EchartsModule'
            },
            {
                path: 'infinite-scroll',
                loadChildren: './infinite-scroll/infinite-scroll.module#InfiniteScrollModule'
            },
            {
                path: 'development-ma',
                loadChildren: './development-ma/development-ma.module#DevelopmentMaModule'
            },
            {
                path: 'component',
                loadChildren: './component-usage/component-usage.module#ComponentUsageModule'
            },
            {
                path: 'icon',
                loadChildren: './icon/icon.module#IconModule'
            },
            {
                path: 'css-animations',
                loadChildren: './css-animations/css-animations.module#CssAnimationsModule'
            },
            {
                path: 'cutting-pictures',
                loadChildren: './cutting-pictures/cutting-pictures.module#CuttingPicturesModule'
            },
            {
                path: 'css-middle',
                loadChildren: './css-middle/css-middle.module#CssMiddleModule'
            },
            {
                path: 'error-prone',
                loadChildren: './error-prone/error-prone.module#ErrorProneModule'
            },
            {
                path: 'dynamic-components',
                loadChildren: './dynamic-components/dynamic-components.module#DynamicComponentsModule'
            },
            {
                path: 'tips',
                loadChildren: './tips/tips.module#TipsModule'
            },
            {
                path: 'rxjs',
                loadChildren: './rxjs/rxjs.module#RxjsModule'
            },
            {
                path: 'map',
                loadChildren: './map/map.module#MapModule'
            },
            {
                path: 'dynamic-form',
                loadChildren: './dynamic-form/dynamic-form.module#DynamicFormModule'
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class PreviewsRoutingModule {
}
